package com.thread;

public class LockOfPrint {
	public static void main(String[] args) throws InterruptedException {
		Thread t = new Thread(new Runnable() {
			int i = 0;
			@Override
			public void run() {
				while(true) {
					System.out.println(i++);
				}
			}
		});
		t.start();
		Thread.sleep(1000L);
		t.suspend();
		System.out.println("end");
	}
}
